<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
    <link rel="stylesheet" href="./轮播图/style.css">
    <style>
        .swiper {
            width: 590px;
            height: 470px;
            margin: 0 auto;
            position: relative;

        }
    </style>
</head>

<body>
    <div class="swiper"></div>
    <br>
    <br>
    <div class="swiper2 swiper"></div>
    <script src="./构造函数模式.js"></script>
    <script>
        var imgList = ['./轮播图/1.webp', './轮播图/2.webp', './轮播图/3.webp', './轮播图/4.jpg', './轮播图/5.jpg', './轮播图/6.webp']
        var swiper1 =new XiaoluSwiper('.swiper', imgList);

        var swiper2 =new XiaoluSwiper('.swiper2', imgList);
    </script>

</body>

</html>